@charset "utf-8";
@import 'ani';
$font: 12px/1.5 'Microsoft YaHei', '宋体', Regular, '黑体', Arial, "Lucida Grande", Verdana;
$c-black: #282727;
$c-green: #a8ce3b;
$c-grenn-dark: #a0c634;
$c-grey: #f5f5f5;
/*绝对定位*/
%abs_mleft{
    position: absolute;
    left: 50%;
}
%abs_mtop{
    position: absolute;
    top: 50%;
}
/*transform居中*/
%trans_for_center{
    -webkit-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
}
/*flex*/
%flex-parent{
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex
}
%flex-child{
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.ani-downin{
    -webkit-animation-name: downin;
    animation-name: downin;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
}
@-webkit-keyframes downin {
    from {
        -webkit-transform: translateY(100%);
    }
    to {
        -webkit-transform: translateY(0);
    }
}
@keyframes downin {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
.ani-dropdown{
    -webkit-animation-name: dropdown;
    animation-name: dropdown;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
}
@-webkit-keyframes dropdown {
    from {
        -webkit-transform: translateY(-200%);
        opacity: 0;
    }
    30%{
        -webkit-transform: translateY(10%);
        opacity: .3;
    }
    50%{
        -webkit-transform: translateY(-5%);
        opacity: .5;
    }
    70%{
        -webkit-transform: translateY(2%);
        opacity: .7;
    }
    to {
        -webkit-transform: translateY(0);
        opacity: 1;
    }
}
@keyframes dropdown {
    from {
        transform: translateY(-200%);
        opacity: 0;
    }
    30%{
        transform: translateY(10%);
        opacity: .3;
    }
    50%{
        transform: translateY(-5%);
        opacity: .5;
    }
    70%{
        transform: translateY(2%);
        opacity: .7;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.ani-scale{
    -webkit-animation-name: scale;
    animation-name: scale;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    span{
        opacity: 1;
        transition: opacity 3s;
    }
}
@-webkit-keyframes scale {
    from {
        -webkit-transform: scale(1);
    }
    30%{
        -webkit-transform: scale(1.2);
    }
    50%{
        -webkit-transform: scale(0.9);
    }
    70%{
        -webkit-transform: scale(1.1);
    }
    to {
        -webkit-transform: scale(1);
    }
}
@keyframes scale {
    from {
        transform: scale(1);
    }
    30%{
        transform: scale(1.2);
    }
    50%{
        transform: scale(0.9);
    }
    70%{
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}
/*--首页样式--*/
/*首页导航栏样式*/
.nav{
    background-color: #fff;
    height: 54px;
    overflow: hidden;
    position: relative;
    img{
        width: 82px;
        margin: 12px 0 0 30px;
    }
    span{
        &:before{
            content: '';
            background-image: url("");
            width: 14px;
            height: 14px;
            display: inline-block;
            background-size: 100%;
            margin-right: 10px;
            position: absolute;
            top: 2px;
            left: 0;
        }
        padding-left: 20px;
        color: $c-green;
        font-size: 9px;
        margin-top: -9px;
        @extend %abs_mtop;
        right: 35px;
    }

}
/*首页幻灯片样式*/
.slider{
    height: 210px;
    overflow: hidden;
    position: relative;
    .img{
        width: 100%;
        will-change: transform;
        -webkit-transition: transform .3s;
        transition: transform .3s;
        position: relative;
        li{
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            will-change: transform;
            img{
                height: 100%;
//                width: 100%;
                display: block;
            }
            &:nth-of-type(2){
                -webkit-transform: translateX(100%);
                transform: translateX(100%);
            }
            &:nth-of-type(3){
                -webkit-transform: translateX(200%);
                transform: translateX(200%);
            }
        }
    }
    .dot{
        overflow: hidden;
        width: 42px;
        position: absolute;
        bottom: 10px;
        left: 50%;
        margin-left: -21px;
        li{
            width: 10px;
            height: 10px;
            border-radius: 5px;
            background-color: rgba(255,255,255,.7);
            float: left;
            margin: 0 2px;
        }
        .current{
            background-color: rgba(140,227,11,.7);
        }
    }
}
/*首页菜单样式*/
.menu{
    font: $font;
    background-color: #fff;
    margin-bottom: 48px;
    ul{
        overflow: hidden;
        padding-top: 10px;
        width: 315px;
        margin: 0 auto;
        li{
            &:nth-of-type(2n-1){
                -webkit-animation-duration: 2.5s;
                animation-duration: 2.5s;
            }
            &:active{
               background-color: $c-grey;
            }
            padding: 15px 20px;
            float: left;
            p{
                &:before{
                    content: '';
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    @extend %trans_for_center;
                    background-size: 100%;
                    background-repeat: no-repeat;
                }
                position: relative;
                border-radius: 50%;
                width: 63px;
                height: 63px;
                border: 1px solid $c-green;

            }
            .p1{
                &:before{
                    width: 28px;
                    height: 28px;
                    background-image: url("");
                }
            }
            .p2{
                &:before{
                    width: 27px;
                    height: 33px;
                    background-image: url("");
                }
            }
            .p3{
                &:before{
                    width: 27px;
                    height: 38px;
                    background-image: url("");
                }
            }
            .p4{
                &:before{
                    width: 38px;
                    height: 27px;
                    background-image: url("");
                }
            }
            .p5{
                &:before{
                    width: 32px;
                    height: 30px;
                    background-image: url("");
                }
            }
            .p6{
                &:before{
                    width: 45px;
                    height: 28px;
                    background-image: url("");
                }
            }
            span{
                margin-top: 10px;
                display: block;
                text-align: center;
                color: $c-black;
            }
        }
    }
}

.bottom{
    overflow: hidden;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: $c-green;
    @extend %flex-parent;
    li{
        &:nth-of-type(2n){
            -webkit-animation-delay: .5s;
            animation-delay: .5s;
        }
        &:nth-of-type(2n-1){
            -webkit-animation-delay: .8s;
            animation-delay: .8s;
        }
        &:before{
            content: '';
            position: absolute;
            background-size: 100%;
            background-repeat: no-repeat;
            left: 50%;
            top: 18px;
            @extend %trans_for_center;
        }
        &:first-of-type:before{
            width: 25px;
            height: 23px;
            background-image: url("");
        }
        &:nth-of-type(2):before{
            width: 27px;
            height: 23px;
            background-image: url("");
        }
        &:last-of-type:before{
            width: 15px;
            height: 23px;
            background-image: url("");
        }
        &:active{
            background-color: $c-grenn-dark;
        }
        @extend %flex-child;
        padding-top: 30px;
        color: #fff;
        font-size: 9px;
        height: 18px;
        text-align: center;
        vertical-align: bottom;
        position:relative;
    }

}
/*--首页样式--*/

.register{
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: #fff;
    h3{
        text-align: center;
        font-size: 16px;
        padding: 10px 0;
        border-bottom: 1px solid #999;
        span{
            margin-left: 10px;
            font-size: 12px;
            i{
                color: $c-green;
            }
        }
    }
    ul{
        li{
            margin-top: 10px;
            position: relative;
            span{
                width: 60px;
                display: inline-block;
                text-align: right;
                position: absolute;
                font-size: 14px;
                padding: 6px 0;
                left: 0;
                top: 0;
            }
            input{
                width: 60%;
                border: 1px solid #999;
                margin-left: 80px;
                padding: 6px 0;
            }
            .s1{
                width: 60px;
                margin-right: 10px;
                &:last-of-type{
                    margin-left: 10px;
                }
            }
            .s2{
                width: 120px;
            }
            em{
                margin-left: 5px;
                color: red;
            }
            p{
                width: 70%;
                padding-left: 90px;
                height: 32px;
                i{
                    font-size: 14px;
                    padding: 4px 0;
                    width: 25%;
                    display: inline-block;
                }
                i.current{
                    background-color: #a8ce3b;
                    color: #fff;
                }
            }
            img{
                width: 60px;
                height: 32px;
                position: absolute;
                top: 0;
                left: 205px;
            }
        }
    }
    p.bline{
        width: 200px;
        margin: 20px auto;
        input{
            -webkit-appearance: checkbox;
            display: inline-block;
            line-height: 15px;
            vertical-align: middle;
        }
        span{
            color: #0033cc;
        }
    }
    button{
        background-color: $c-green;
        color: #fff;
        font-size: 16px;
        padding: 5px 20px;
        width: 120px;
        display: block;
        margin: 20px auto;
    }
    .b{
        &:before{
            content: '';
            width: 4px;
            height: 10px;
            background-color: $c-green;
            position: absolute;
            left: 0;
            top: 4px;
        }
        margin: 5px auto;
        position: relative;
        width: 200px;
        padding-left: 10px;
        color: #0033cc;
        text-decoration: underline;
    }
}
.registercomplete{
    .t{
        background-color: $c-green;
        color: #fff;
        padding: 20px 0;
        h3{
            text-align: center;
            font-size: 18px;
        }
        p{
            width: 240px;
            padding: 0 40px;
            margin: 0 auto;
        }
    }
    ul{
        width: 280px;
        margin: 20px auto;
        overflow: hidden;
        li{
            float: left;
            position: relative;
            margin: 10px;
            img{
                width: 120px;
                height: 120px;
            }
            &:first-of-type{
                span{
                    color: #878849;
                }
            }
            &:nth-of-type(2){
                span{
                    color: #878849;
                }
            }
            span{
                font-size: 14px;
                color: #fff;
                position: absolute;
                width: 100px;
                left: 50%;
                margin-left: -50px;
                top: 50%;
                margin-top: -10px;
                text-align: center;
            }
        }
    }
}
.activityinfo{
    h3{
        background-color: $c-green;
        color: #fff;
        font-size: 24px;
        padding: 5px 0;
        text-align: center;
    }
    img{
        width: 100%;
    }
    p{
        padding: 20px;
    }
}
.membernotice{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #666;
    .c{
        text-align: center;
        padding: 10px 0;
    }
    .a{
        padding: 0 20px;
        line-height: 24px;
    }
    .b{
        color: #000;
        margin: 20px 0;
        padding: 0 20px;
        input{
            vertical-align: middle;
        }
    }
}
.bar{
    position: fixed;
    background-color: $c-green;
    font-size: 14px;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44px;
    overflow: hidden;
    &:before{
        content: '';
        position: absolute;
        height: 24px;
        width: 2px;
        left: 50%;
        top: 10px;
        background-color: #fff;
    }
    span{
        display: inline-block;
        width: 50%;
        color: #fff;
        text-align: center;
        padding: 10px 0;
        font-size: 16px;
        float: left;
    }
}
.ani-outsidein{
    li{
        &:nth-of-type(2n+1){
            -webkit-animation: leftin 1s;
            animation: leftin 1s;
        }
        &:nth-of-type(2n){
            -webkit-animation: rightin 1s;
            animation: rightin 1s;
        }
    }
}